package cn.com.sise.service.impl;

import java.util.List;

import cn.com.sise.dao.IBookDao;
import cn.com.sise.dao.impl.BookDaoImpl;
import cn.com.sise.entity.Book;
import cn.com.sise.service.IBookService;

public class BookServiceImpl implements IBookService {	
	
	//查询所有图书
	public List<Book> queryAll() throws Exception {
		IBookDao bookDao=new BookDaoImpl();
		return bookDao.queryAll();
	}

	//添加图书
	public int add(Book book) throws Exception {
		IBookDao bookDao=new BookDaoImpl();
		return bookDao.bookInsert(book);
	}
}
